/**
 * Copyright (C) 2013-2015
 *
 * @file   S_3_Function_doChange.c
 *
 * @remark
 *
 */

#include "S_3_Function_doChange.h"
#include "miio_user_api.h"
#include "iid.h"


uint8_t P_3_2_StrokeSetting_doChange(uint32_t newValue)
{
    uint8_t ret = 1;
    if (miio_properties_changed(3, 2, property_value_new_ulong(newValue)) != 0)
    {
        ret = 0;
        MI_LOG_ERROR("send_property_changed failed!\n");
    }
    return ret;
}


uint8_t P_3_3_StrokeSettingMax_doChange(uint32_t newValue)
{
    uint8_t ret = 1;
    if (miio_properties_changed(3, 3, property_value_new_ulong(newValue)) != 0)
    {
        ret = 0;
        MI_LOG_ERROR("send_property_changed failed!\n");
    }
    return ret;
}


uint8_t P_3_4_NodeModel_doChange(uint32_t newValue)
{
    uint8_t ret = 1;
    if (miio_properties_changed(3, 4, property_value_new_ulong(newValue)) != 0)
    {
        ret = 0;
        MI_LOG_ERROR("send_property_changed failed!\n");
    }
    return ret;
}


uint8_t P_3_5_Argument_doChange(uint32_t newValue)
{
    uint8_t ret = 1;
    if (miio_properties_changed(3, 5, property_value_new_ulong(newValue)) != 0)
    {
        ret = 0;
        MI_LOG_ERROR("send_property_changed failed!\n");
    }
    return ret;
}


uint8_t P_3_6_Configuration_doChange(uint32_t newValue)
{
    uint8_t ret = 1;
    if (miio_properties_changed(3, 6, property_value_new_ulong(newValue)) != 0)
    {
        ret = 0;
        MI_LOG_ERROR("send_property_changed failed!\n");
    }
    return ret;
}


uint8_t P_3_7_RemindType_doChange(uint32_t newValue)
{
    uint8_t ret = 1;
    if (miio_properties_changed(3, 7, property_value_new_ulong(newValue)) != 0)
    {
        ret = 0;
        MI_LOG_ERROR("send_property_changed failed!\n");
    }
    return ret;
}

